package com.example.japinhands.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update
import com.example.japinhands.data.DeformAdj

@Dao
interface AdjDao {
    @Insert
    fun insertDeformAdj(deformAdj: DeformAdj): Long
    @Query("delete from deform_adj")
    fun deleteDeformAdj()
    @Query("select * from deform_adj")
    fun getAllDeformAdj(): List<DeformAdj>

    @Query("select * from deform_adj where id = :id")
    fun queryDeformAdjById(id: Long): DeformAdj?

    @Update
    fun updateDeformAdj(adj: DeformAdj)
}